package rkdwogus7.basic;

import java.util.Scanner;

public class J06_SungjukV2c {

	public static void main(String[] args) {
		Scanner sc = null;
		String name;
		int kor, eng, mat;
		int isLoop = 1;		
		final String title = "성적 처리 프로그램";
		final String hdrline = "-------------";
		final String guide1 = "이름은?";
		final String guide2 = "국어는?";
		final String guide3 = "영어는?";
		final String guide4 = "수학은?";
		final String guide5 = 				
				"계속 입력할래요?	(예:1, 아니오:0)"; 
		
		do {
			sc = new Scanner(System.in);
			System.out.println( title );
			System.out.println( hdrline );
			System.out.println( guide1 );
			name = sc.next();
			System.out.println( guide2 );	// 국어
			kor = sc.nextInt();
			System.out.println( guide3 );	// 영어
			eng = sc.nextInt();
			System.out.println( guide4 );	// 수학
			mat = sc.nextInt();
			System.out.println( guide5 );	// 반복여부
			isLoop = sc.nextInt();
		} while (isLoop == 1);
		
		System.out.println( "성적 입력을 마칩니다");
		sc.close();
	}

}
